package com.ming.mq.controller;

import com.ming.mq.topic.TopicMQSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/topic")
public class TopicController {
    @Autowired(required = false)
    private TopicMQSender topicMQSender;
    @RequestMapping("/send1")
    public void send1(){
        topicMQSender.send1("topic msg...");
    }

    @RequestMapping("/send2")
    public void send2(){
        topicMQSender.send2("topic msg...");
    }

}
